<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="centre/manage/include :: header"></head>

<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="noCheckDetailForm">
							<input type="hidden" th:value="${member.id}" id="id" name="id">
							<input id="nickname" name="nickname" type="hidden" th:value="${member.nickname}"/>
							<input id="payStatus" name="payStatus" type="hidden" th:value="${member.payStatus}"/>
							<table class="table table-bordered table-condensed">
								<tbody>
								<tr>
									<th class="required" style="text-align: right;">昵称</th>
									<td th:text="${member.nickname}">
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">openId</th>
									<td th:text="${member.openid}"></td>
									<input type="hidden" id="openid"  name="openid" th:value="${member.openid}" />
								</tr>
								<tr>
									<th class="required" style="text-align: right;">门店申请时间</th>
									<td th:text="${member.sTime} == null ? null : ${#dates.format(member.sTime,'yyyy-MM-dd HH:mm:ss')}"></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">申请者所交保证金</th>
									<td><input id="bondmoney" name="bondmoney" class="form-control" type="text" th:value="${member.bondmoney}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">真实姓名</th>
									<td>
									     <div style="width: 98%;float: left"><input id="realname" name="realname" class="form-control" type="text" th:value="${member.realname}"/></div>
									     <div style="width: 1%;float: left;margin-top: 8px;"><font color="red" style="margin-left: 8px">*</font></div>
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">性别</th>
									<td>
                                       <label class="radio-inline"><input th:field="*{member.gender}" type="radio" name="gender" value="1"/>男</label> 
							           <label class="radio-inline"><input th:field="*{member.gender}" type="radio" name="gender" value="2" />女</label>
							           <label class="radio-inline"><input th:field="*{member.gender}" type="radio" name="gender" value="0" />保密</label>
                                    </td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">推荐门店</th>
									<td>
									     <input type="hidden" id="centreId"  name="centreId" th:value="${member.centreId}">
									     <input id="upTeamid" name="upTeamid" class="form-control" type="hidden" th:value="${member.upTeamid}">
									     <input id="upTeamname" name="upTeamname" placeholder="点击选择推荐门店" th:value="${member.upTeamname}" class="form-control" type="text" readonly  onclick="chooseCommander()">
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">手机号码</th>
									<td>
									    <div style="width: 98%;float: left"><input id="mobile" name="mobile" class="form-control" type="text" th:value="${member.mobile}"/></div>
									    <div style="width: 1%;float: left;margin-top: 8px;"><font color="red" style="margin-left: 8px">*</font></div>
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">身份证号</th>
									<td>
									   <div style="width: 98%;float: left"><input id="idCard" name="idCard" class="form-control" type="text" th:value="${member.idCard}"/></div>
									   <div style="width: 1%;float: left;margin-top: 8px;"><font color="red" style="margin-left: 8px">*</font></div>
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;width: 16%;">身份证正面、身份证反面、工商营业执照、食品许可证、门店照片</th>
									<td>
									    <img style="width:150px;height:100px;" th:src="@{${member.teamDesc.idCardZ}}" th:if="${member.teamDesc.idCardZ} != ''">
									    <img style="width:150px;height:100px;" th:src="@{${member.teamDesc.idCardF}}" th:if="${member.teamDesc.idCardF} != ''">
									    <img style="width:150px;height:100px;" th:src="@{${member.teamDesc.gsLicense}}" th:if="${member.teamDesc.gsLicense} != ''">
									    <img style="width:150px;height:100px;" th:src="@{${member.teamDesc.spLicense}}" th:if="${member.teamDesc.spLicense} != ''">
									    <img style="width:150px;height:100px;" th:src="@{${member.teamDesc.store}}" th:if="${member.teamDesc.store} != ''">
									</td>
								</tr>
								<!--<tr>
									<th class="required" style="text-align: right;">地区</th>
									<td>
									   <div class="gg-formDetail gg-font0" data-toggle="distpicker" th:attr="data-province=${member.province},data-city=${member.city},data-district=${member.area}">
		                                    <div class="gg-area">
		                                        <select class="form-control" id="province" name="province">
		                                        </select>
		                                    </div>
		                                    <div class="gg-area">
		                                        <select class="form-control" id="city" name="city">
		                                        </select>
		                                    </div>
		                                    <div class="gg-area">
		                                        <select class="form-control" id="area" name="area">
		                                        </select>
		                                    </div>
	                                   </div>
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">门店名称</th>
									<td><input id="xiaoqu" name="xiaoqu" class="form-control" type="text" th:value="${member.xiaoqu}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">详细地址</th>
									<td><input id="address" name="address" class="form-control" type="text" th:value="${member.address}"/></td>
								</tr>-->
								<tr>
									<th class="required" style="text-align: right;">门店商店所在地区</th>
									<td>
									   <div class="gg-formDetail gg-font0" data-toggle="distpicker" th:attr="data-province=${member.tProvince},data-city=${member.tCity},data-district=${member.tArea}">
		                                    <div class="gg-area">
		                                        <select class="form-control" id="tProvince" name="tProvince">
		                                        </select>
		                                    </div>
		                                    <div class="gg-area">
		                                        <select class="form-control" id="tCity" name="tCity">
		                                        </select>
		                                    </div>
		                                    <div class="gg-area">
		                                        <select class="form-control" id="tArea" name="tArea">
		                                        </select>
		                                    </div>
	                                   </div>
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">门店商店所在小区</th>
									<td><input id="tXiaoqu" name="tXiaoqu" class="form-control" type="text" th:value="${member.tXiaoqu}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">门店商店详细地址</th>
									<td><input id="tShopname" name="tShopname" class="form-control" type="text" th:value="${member.tShopname}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">修改经缜纬度</th>
									<td><input id="lat" name="lat" class="form-control" type="text" th:value="${member.lat}"/><p onclick="getZuoBiao()" style="height: 5px;"><a>点击获取坐标值</a></p></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">注册时间</th>
									<td th:text="${member.createtime} == null ? null : ${#dates.format(member.createtime,'yyyy-MM-dd HH:mm:ss')}"></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">提交订单</th>
									<td th:text="${member.orderSum}"></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">审核状态</th>
									<td>
									   <select id="isteam" name="isteam" data-placeholder="选择审核状态" class="form-control chosen-select" tabindex="2">
											<option value="3" selected="selected">审核并开通</option>
											<option value="4">审核通过</option>
										</select>
									</td>
								</tr>
								<tr th:if="${member.isMerchantDirectStore == 0 }">
									<th class="required" style="text-align: right;">商户下直属门店</th>
									<td>
										<div>
											真实姓名:<span th:text="${member.merchantName}"></span>
											<br/>
											身份证:<span th:text="${member.lawyerCertNo}"></span><br/>
											手机号码:<span th:text="${member.contactPhone}"></span><br/>
											收款银行卡号:<span th:text="${member.settleAccountNo}"></span><br/>
											邮箱:<span th:text="${member.merchantEmail}"></span><br/>
											银行卡总行名称:<span th:text="${member.openBank}"></span><br/>
										</div>
									</td>
								</tr>
								</tbody>
							</table>
							<div class="form-group text-center">
								<div class="col-sm-8 col-sm-offset-2">
									<button type="submit"  class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
									<button type="button"  class="btn btn-primary" onclick="saveZL()"><i class="fa fa-check"></i>保存资料</button>
									<button type="button"  class="btn btn-danger" onclick="reject()"><i class="fa fa-check"></i>拒绝</button>
									<div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>

	</div>
	<div th:include="centre/manage/include::footer"></div>
	<script type="text/javascript" src="/js/appjs/commander/manage/noCheckDetail.js"></script>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
		function getZuoBiao() {
			window.open("https://lbs.amap.com/console/show/picker");
		}
	</script>
</body>
</html>
